package com.group3.pojo.receive;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.group3.pojo.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @ClassName RcordReceive
 * @Author jt-sinlio
 * @Time 2021/6/17 9:46
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("门禁打卡类")
public class RecordReceive extends Page{
    @Past(message = "必须为过去的一个日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期", required = false)
    private Date startDate;

    @Past(message = "必须为过去的一个日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束日期", required = false)
    private Date endDate;

    //（精确匹配）
    @ApiModelProperty(value = "学号", required = false)
    private String studentId;

    //（模糊查询）
    @ApiModelProperty(value = "学员名称", required = false)
    private String studentName;
}
